home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_06_07 / v6n7024a.txt < prev    next >
Text File  |  1989-09-26  |  1KB  |  29 lines

  1.  
  2. Table 9 - DMA chip command sequence for floppy data transfers
  3. -------------------------------------------------------------
  4. The following series of outputs will set up the DMA chip for transferring
  5. data to or from the floppy disk controller.  The DMA chip base address
  6. is I/O address 0.  Note:  This description will set up only for
  7. transfers on DMA channel 2 (the floppy channel).
  8.  
  9. Offset    Data      Explanation
  10. ------    ----      -----------
  11. 0x0C      0x00      Clears an internal flip-flop in the chip
  12.  
  13. 0x0B      ?         output a 0x46 if reading the floppy, or a
  14.                     0x4A if writing to the floppy (or formatting).
  15.  
  16. 0x04      low byte of physical address
  17.  
  18. 0x04      bits 8 thru 15 of physical address
  19.  
  20. 0x81      bits 16 thru 19 of physical address
  21.                     This is not part of the DMA chip.
  22.  
  23. 0x05      low byte of (transfer count less 1)
  24.  
  25. 0x05      high byte of (transfer count less 1)
  26.                     The DMA chip requires n-1.
  27.  
  28. 0x0A      0x02      Enables the transfer.
  29.